package cn.hinglo.gameclaw.user.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @createTime: 2017/12/29
 * @author: HingLo
 * @description: 展示图的Banner管理
 */
@Data
@Accessors(chain = true)
@Table(name = "banner")
public class Banner implements Serializable {
    @Id
    private String id;

    @Column(name = "image_url")
    private String imageUrl;

    /**
     * 目标地址的ID
     */
    @NotNull(message = "目标ID不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{1,30}$", message = "tid的格式不正确")
    private String tid;
    /**
     * 类型（娃娃机，html)
     */
    @NotNull(message = "目标类型不能为空")
    private Integer type;
    /**
     * 启动状态
     */
    private Boolean status;

}
